import request from '@/utils/request';

// 列表
export async function queryDataType(params) {
  return request('/b/datatype/queryTreeList', {
    method: 'POST',
    data: params,
  });
}
// 新增
export async function addDataType(params) {
  return request('/b/datatype/add', {
    method: 'POST',
    data: params,
  });
}
// 修改
export async function updateDataType(params) {
  return request('/b/datatype/update', {
    method: 'POST',
    data: params,
  });
}

// 删除
export async function removeDataType(params) {
  return request('/b/datatype/delete', {
    method: 'POST',
    data: params,
  });
}

// 新增子类别
export async function addSubDataType(params) {
  return request('/b/datatype/add', {
    method: 'POST',
    data: params,
  });
}

export async function queryListForType(params) {
  return request('/b/datasensitivewords/queryListForType', {
    method: 'POST',
    data: params,
  });
}

export async function datatypewordreladd(params) {
  return request('/b/datatypewordrel/add', {
    method: 'POST',
    data: params,
  });
}